package chapter15;

import java.util.Date;

/**
 * Created by lzy
 * Date: 2018/5/14
 */
public class TimeStampedDecorator extends Decorator {
    private final long timeStamp;

    public TimeStampedDecorator(Base base) {
        super(base);
        timeStamp = new Date().getTime();
    }

    public long getStamp() {
        return timeStamp;
    }
}
